import QtQuick 2.0

Item {

    property real heightValue: 200
    property real scale: 1 //像素与实际长度的比例

    Image {
        id: limitHeightLine
        y:35
        source: "qrc:/loader/imgs/limit_height_line.png"
        anchors.horizontalCenter: parent.horizontalCenter
    }

    Image {
        id: heightLine
        source: "qrc:/loader/imgs/height_line.png"
        anchors.horizontalCenter: parent.horizontalCenter
        onHeightChanged: {
            heightLine.y = 1300 - heightValue * scale
        }
    }

    Image {
        id: heightShadow
        y: 1150
        source: "qrc:/loader/imgs/digger_shadow.png"
        anchors.horizontalCenter: parent.horizontalCenter
        Text {
            id: name
            anchors.centerIn: parent
            text: "50 mm"
            color: "white"
            font{
                family: "Aldrich"
                pixelSize: 64
            }
        }
    }

    Rectangle{
//        x: 43
//        y: 1000
        anchors.bottom: heightShadow.bottom
        width: 174
        height: 300
        color: Qt.rgba(0,0,0,0.4)
        border.width: 1
        border.color: Qt.rgba(1,1,1,0.4)
//        Image {
//            x: 20
//            source: "qrc:/loader/imgs/digger_group.png"
//        }

        Angle{
            x:20

            currentAngle: can_manager.bucket_angle
        }
    }

}
